package br.com.merks.controller.vo;

import java.math.BigDecimal;

public class TradeSumVO  {

	private BigDecimal answerTotalPrice;
	private BigDecimal actualAnswerTotalPrice;
	private BigDecimal diferenceAnswerTotalPrice;
	private Long marketId;
	private Long userId;
	private Long marketAnswerId;
	private Integer totalMerks;
	private int tendency;
	
	public BigDecimal getActualAnswerTotalPrice() {
		return actualAnswerTotalPrice;
	}
	public void setActualAnswerTotalPrice(BigDecimal actualAnswerTotalPrice) {
		this.actualAnswerTotalPrice = actualAnswerTotalPrice;
		this.tendency = actualAnswerTotalPrice.compareTo(answerTotalPrice);
		this.diferenceAnswerTotalPrice = actualAnswerTotalPrice.subtract(answerTotalPrice);
	}
	public Integer getTotalMerks() {
		return totalMerks;
	}
	public void setTotalMerks(Integer totalMerks) {
		this.totalMerks = totalMerks;
	}
	public BigDecimal getAnswerTotalPrice() {
		return answerTotalPrice;
	}
	public void setAnswerTotalPrice(BigDecimal answerTotalPrice) {
		this.answerTotalPrice = answerTotalPrice;
	}
	public Long getMarketId() {
		return marketId;
	}
	public void setMarketId(Long marketId) {
		this.marketId = marketId;
	}
	public Long getUserId() {
		return userId;
	}
	public void setUserId(Long userId) {
		this.userId = userId;
	}
	public Long getMarketAnswerId() {
		return marketAnswerId;
	}
	public void setMarketAnswerId(Long marketAnswerId) {
		this.marketAnswerId = marketAnswerId;
	}
	public void setTendency(int tendency) {
		this.tendency = tendency;
	}
	public int getTendency() {
		return tendency;
	}
	public void setDiferenceAnswerTotalPrice(BigDecimal diferenceAnswerTotalPrice) {
		this.diferenceAnswerTotalPrice = diferenceAnswerTotalPrice;
	}
	public BigDecimal getDiferenceAnswerTotalPrice() {
		return diferenceAnswerTotalPrice;
	}
	

}
